Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

311
Vistas
How to get selected image content in office[Word Powerpoint] web addin?

I want to develop an office add in to add image effect to user selected image. but i did not find how to get the image content in the reference.

I have tried getSelectedDataAsync api, but it not work.

Office.context.document.getSelectedDataAsync(Office.CoercionType.Image, function(asyncResult) {
            console.log(asyncResult)
});

Console output:

OSF.DDA.AsyncResult {value: undefined, status: 'failed', error: OSF.DDA.Error}

I also tried presentation.getSelectedShapes api, but it not work either. getSelectedShapes can get the selected shape and i can get the shape type and make sure the shape is an image, but there is no method to get the image content.

PowerPoint.run(function(context) { o = context.presentation.getSelectedShapes().getItemAt(0); o.load(); console.log(o); return context.sync() })

So is there a way to get the image content in office add-in?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda